Home

Operator Usage

Name

split

Description

split ket
splits the ket into a superposition

split["str"] ket
splits the ket into a superposition, splitting on str


Examples

split |abcde>
    |a> + |b> + |c> + |d> + |e>

split["d"] |abcdef>
    |abc> + |ef>

split["g"] split["d"] |abcdefghij>
    |abc> + |ef> + |hij>


See also

Operator type

ket normal, ket compound